3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and manipulate trigrids. See "Trigrids" for the definition of a trigrid.
You can use the Q3TriGrid_New function to create a new trigrid.
TQ3GeometryObject Q3TriGrid_New (
const TQ3TriGridData *triGridData);
You can use the Q3TriGrid_Submit function to submit an immediate trigrid for drawing, picking, bounding, or writing.
TQ3Status Q3TriGrid_Submit (
const TQ3TriGridData *triGridData,
TQ3ViewObject view);
The Q3TriGrid_Submit function submits for drawing, picking, bounding, or writing the immediate trigrid whose shape and attribute set are specified by the triGridData parameter. The trigrid is drawn, picked, bounded, or written according to the view characteristics specified in the view parameter.
You can use the Q3TriGrid_GetData function to get the data that defines a trigrid and its attributes.
TQ3Status Q3TriGrid_GetData (
TQ3GeometryObject trigrid,
TQ3TriGridData *triGridData);
You can use the Q3TriGrid_SetData function to set the data that defines a trigrid and its attributes.
TQ3Status Q3TriGrid_SetData (
TQ3GeometryObject trigrid,
const TQ3TriGridData *triGridData);
You can use the Q3TriGrid_EmptyData function to release the memory occupied by the data structure returned by a previous call to Q3TriGrid_GetData .
TQ3Status Q3TriGrid_EmptyData (TQ3TriGridData *triGridData);
You can use the Q3TriGrid_GetVertexPosition function to get the position of a vertex of a trigrid.
TQ3Status Q3TriGrid_GetVertexPosition (
TQ3GeometryObject triGrid,
unsigned long rowIndex,
unsigned long columnIndex,
TQ3Point3D *position);
You can use the Q3TriGrid_SetVertexPosition function to set the position of a vertex of a trigrid.
TQ3Status Q3TriGrid_SetVertexPosition (
TQ3GeometryObject triGrid,
unsigned long rowIndex,
unsigned long columnIndex,
const TQ3Point3D *position);
You can use the Q3TriGrid_GetVertexAttributeSet function to get the attribute set of a vertex of a trigrid.
TQ3Status Q3TriGrid_GetVertexAttributeSet (
TQ3GeometryObject triGrid,
unsigned long rowIndex,
unsigned long columnIndex,
TQ3AttributeSet *attributeSet);
The Q3TriGrid_GetVertexAttributeSet function returns, in the attributeSet parameter, the set of attributes for the vertex having row and column indices rowIndex and columnIndex in the vertices array of the trigrid specified by the triGrid parameter. The reference count of the set is incremented.
You can use the Q3TriGrid_SetVertexAttributeSet function to set the attribute set of a vertex of a trigrid.
TQ3Status Q3TriGrid_SetVertexAttributeSet (
TQ3GeometryObject triGrid,
unsigned long rowIndex,
unsigned long columnIndex,
TQ3AttributeSet attributeSet);
You can use the Q3TriGrid_GetFacetAttributeSet function to get the attribute set of a facet of a trigrid.
TQ3Status Q3TriGrid_GetFacetAttributeSet (
TQ3GeometryObject triGrid,
unsigned long faceIndex,
TQ3AttributeSet *facetAttributeSet);
You can use the Q3TriGrid_SetFacetAttributeSet function to set the attribute set of a facet of a trigrid.
TQ3Status Q3TriGrid_SetFacetAttributeSet (
TQ3GeometryObject triGrid,
unsigned long faceIndex,
TQ3AttributeSet facetAttributeSet);
Previous | QD3D Book | Overview | Chapter Contents | Next |